package com.video_study.dao;

import com.video_study.dto.CommentDto;
import com.video_study.pojo.Comment;
import com.video_study.pojo.UserApprove;

import java.util.List;

public interface CommentMapper {
    int deleteByPrimaryKey(String id);

    int insert(Comment record);

    Comment selectByPrimaryKey(String id);

    List<Comment> selectAll();

    int updateByPrimaryKey(Comment record);

    List<CommentDto> selectCommentsById(String id);

    Integer sendComment(Comment comment);

    UserApprove getApproves(UserApprove userApprove);
}